import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/user/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
//部门模块
import Department from "./views/org/Department";
import Shop from "./views/org/Shop";
import Employee from "./views/org/Employee";
import Systemdictionarydetail from "./views/system/Systemdictionarydetail";
import Systemdictionarytype from "./views/system/Systemdictionarytype";
import ShopRegister from "./views/org/ShopRegister";
import logininfo from "./views/user/logininfo";
import Permission from "./views/system/Permission";
import Menu from "./views/system/Menu";
import Role from "./views/system/Role";
import Pet from "./views/pet/PetManage";
import SearchMasterMsgFinish from "./views/searchMsg/SearchMasterMsgFinish";
import SearchMasterMsgPool from "./views/searchMsg/SearchMasterMsgPool";
import SearchMasterMsgToAudit from "./views/searchMsg/SearchMasterMsgToAudit";
import SearchMasterMsgTohandle from "./views/searchMsg/SearchMasterMsgTohandle";


let routes = [

    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },

    {
        path: '/shopregister',
        component: ShopRegister,
        name: '',
        hidden: true  //隐藏，不在侧边栏显示
    },

    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        leaf: true ,
        name: 'Charts',
        iconCls: 'el-icon-s-home',
        children: [
            { path: '/echarts', component: echarts, name: '首页' }
        ]
    },
    /*{
        path: '/',
        component: Home,
        name: '组织机构模块',
        iconCls: 'el-icon-s-grid',//图标样式class
        children: [
            { path: '/department', component: Department, name: '部门管理' },
            { path: '/employee', component: Employee, name: '员工管理' },
            { path: '/shop', component:Shop, name: '店铺管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-s-platform',
        children: [
            { path: '/role', component: Role, name: '角色管理' },
            { path: '/permission', component: Permission, name: '权限管理' },
            { path: '/menu', component: Menu, name: '菜单管理' },
            { path: '/systemdictionarytype', component: Systemdictionarytype, name: '数据字典类型' },
            { path: '/systemdictionarydetail', component: Systemdictionarydetail, name: '数据字典明细' },
            { path: '/log', component: Table, name: '系统日志' }
        ]
    },*/
    {
        path: '/',
        component: Home,
        name: '用户模块',
        iconCls: 'el-icon-user-solid',
        children: [
            { path: '/user', component: user, name: '用户管理' },
            { path: '/logininfo', component: logininfo, name: '登录管理' },
        ]
    },
    /*{
        path: '/',
        component: Home,
        name: '宠物管理',
        iconCls: 'el-icon-user-solid',
        children: [
            { path: '/pet', component: Pet, name: '宠物管理' }
        ]
    },*/

    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }/*,
    {
        path: '/',
        component: Home,
        name: '寻主消息',
        iconCls: 'el-icon-user-solid',
        children: [
            { path: '/searchMsg', component: SearchMasterMsgFinish, name: '已完成' },
            { path: '/searchMsg', component: SearchMasterMsgPool, name: '寻主池' },
            { path: '/searchMsg', component: SearchMasterMsgToAudit, name: '待审核' },
            { path: '/searchMsg', component: SearchMasterMsgTohandle, name: '待处理' },
        ]
    }*/
];

export default routes;
